<?php
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;
use yii\helpers\Url;
AppAsset::register ( $this );
?>
<?php $this->beginPage()?>
<!DOCTYPE html>
<html lang="<?= \Yii::$app->language ?>" style="min-height: 349px;">
<head>
<title><?= Html::encode($this->title) ?></title>

<meta charset="<?= \Yii::$app->charset ?>">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<style type="text/css" adt="123"></style>
<style id="style-1-cropbar-clipper">/* Copyright 2014 Evernote Corporation. All rights reserved. */
.en-markup-crop-options {
	top: 18px !important;
	left: 50% !important;
	margin-left: -100px !important;
	width: 200px !important;
	border: 2px rgba(255, 255, 255, .38) solid !important;
	border-radius: 4px !important;
}

.en-markup-crop-options div div:first-of-type {
	margin-left: 0px !important;
}
</style>



<?= Html::csrfMetaTags()?>
<?php $this->head()?>
</head>
<body class="skin-blue  pace-done" style="min-height: 349px;">
 <?php $this->beginBody()?>
	 <div class="pace  pace-inactive">
		<div class="pace-progress" data-progress-text="100%"
			data-progress="99" style="width: 100%;">
			<div class="pace-progress-inner"></div>
		</div>
		<div class="pace-activity"></div>
	</div>

	<!-- header logo: style can be found in header.less -->
	<header class="header">
		<div class="logo">学生信息服务平台</div>
		<!-- Header Navbar: style can be found in header.less -->
		<nav class="navbar navbar-static-top" role="navigation">
			<!-- Sidebar toggle button-->

			<div class="navbar-right">
				<ul class="nav navbar-nav">
					<!-- User Account: style can be found in dropdown.less -->
					<li class="dropdown user user-menu"><a href="#"
						class="adropdown-toggle" data-toggle="dropdown"> <i
							class="glyphicon glyphicon-user"></i> <span>管理员账户<i class="caret"></i></span>
					</a>
						<ul class="dropdown-menu">
							<!-- User image -->
							<li class="user-header bg-light-blue">
								<p>
									当前在线用户：<?php echo Yii::$app->user->identity->username; ?>
								</p>
							</li>
							<!-- Menu Footer-->
							<li class="user-footer">
								<div class="pull-right">
									<form method="post"
										action="<?=\Yii::getAlias('@web')?>/user/security/logout">
										<input type="hidden" name="_csrf"
											value='<?=\Yii::$app->request->csrfToken?>' />
										<button>退出登录</button>
									</form>
								</div>
							</li>
						</ul></li>
				</ul>
			</div>
		</nav>
	</header>
	<div class="wrapper row-offcanvas row-offcanvas-left"
		style="min-height: 208px;">
		<!-- Left side column. contains the logo and sidebar -->
		<aside class="left-side sidebar-offcanvas" style="min-height: 349px;">
			<!-- sidebar: style can be found in sidebar.less -->
			<section class="sidebar">
				<!-- Sidebar user panel -->
				<div class="user-panel">
					<div class="pull-left info">
						<p><?php echo Yii::$app->user->identity->username; ?>  &nbsp;<i
								class="fa fa-circle text-success"></i> 在线
						</p>

					</div>
				</div>
				<!-- sidebar menu: : style can be found in sidebar.less -->
				<ul class="sidebar-menu">

					<li class="treeview"><a href="#"><i class="fa fa-comments"></i>
							基本信息 <i class="fa pull-right fa-angle-left"></i></a>
						<ul class="treeview-menu" style="display: block;">
							<li><a href="<?=\Yii::getAlias('@web')?>/personinfo/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									个人信息 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/schoolinfo/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									学籍信息 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/dlfl/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									大类分流情况</a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/zjfl/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									转专业情况 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/liuji/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									留级情况 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/xiuxue/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									休学情况 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/fuxue/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									复学情况 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/tuixue/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									退学情况 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/dorminfo/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									住宿信息 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/dormchangeinfo/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									宿舍变动信息 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/familyinfo/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									家庭信息 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/familymember/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									家庭成员信息 </a></li>
						</ul></li>


					<li class="treeview"><a href="#"><i class="fa fa-book"> </i> 纪律检查 <i
							class="fa pull-right fa-angle-left"></i></a>
						<ul class="treeview-menu" style="display: block;">
							<li><a href="<?=\Yii::getAlias('@web')?>/class/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									课堂考勤记录 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/activity/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									活动考勤记录 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/xddw/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									熄灯断网执行记录 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/sanitation/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									卫生检查记录 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/breakrule/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									违纪预警情况 </a></li>

							<li><a href="<?=\Yii::getAlias('@web')?>/punishment/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									违纪处分情况 </a></li>
						</ul></li>


					<li class="treeview"><a href="#"><i class="fa fa-ship"></i>
							综合表现<i class="fa pull-right fa-angle-left"></i></a>
						<ul class="treeview-menu" style="display: block;">
							<li><a href="<?=\Yii::getAlias('@web')?>/literary/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									文体活动 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/socialwork/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									社会工作 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/rewardfunding/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									奖励资助 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/honortitle/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									荣誉称号 </a></li>
						</ul>
					</li>
					
							<li><a href="<?=\Yii::getAlias('@web')?>/tmptable/index"
								style="margin-left: 10px;"><i class="fa fa-spinner"></i>
									综合查询 </a></li>
					<li class="treeview"><a href="#"><i class="fa fa-dashboard"></i>
							使用登记<i class="fa pull-right fa-angle-left"></i></a>
						<ul class="treeview-menu" style="display: block;">
							<li><a href="<?=\Yii::getAlias('@web')?>/classroomuse/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									教室使用 </a></li>
									
							<li><a href="<?=\Yii::getAlias('@web')?>/materialborrow/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									物资借用 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/classroom/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									教室管理 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/material/index"
								style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>
									物资管理 </a></li>
						</ul>
					</li>
							
				
					
					
<?php if(Yii::$app->authManager->checkAccess(Yii::$app->user->getId(), 'admin')):?>
	<li class="treeview"><a href="#"><i class="fa fa-group"></i> 用户管理<i
							class="fa pull-right fa-angle-left"></i></a>
						<ul class="treeview-menu" style="display: block;">
							<li><a
								href="<?=\Yii::getAlias('@web')?>/personinfo/studentaccount"><i
									class="fa fa-angle-double-right"></i> 学生账号 </a></li>
							<li><a href="<?=\Yii::getAlias('@web')?>/user/admin/index"><i
									class="fa fa-angle-double-right"></i> 教师账号 </a></li>

						</ul></li>

	
<?php endif;?>
</ul>
			</section>
			<!-- /.sidebar -->


		</aside>

		<!-- Right side column. Contains the navbar and content of the page -->
		<aside class="right-side">
			<!-- Content Header (Page header) -->
                
                    <?=Breadcrumbs::widget ( [ 'homeLink' => [ 'label' => '后台','url' => Yii::getAlias ( '@web' ) . '/personinfo/index' ],'links' => isset ( $this->params ['breadcrumbs'] ) ? $this->params ['breadcrumbs'] : [ ] ] )?>
               

                <!-- Main content -->
			<section class="content">
               		<?= $content ?>       
               		
			  	 </section>
			<!-- /.content -->

		</aside>
		<!-- /.right-side -->
	</div>
	<!-- ./wrapper -->
 
<?php $this->endBody()?>
</body>
</html>
<?php $this->endPage()?>
